using System;
using System.Data.SqlTypes;

namespace EntityObjectLayer
{
    [Serializable]
    public class BEBehaviour
    {
        #region Class Member Declarations

        private SqlInt32 m_iAbsentCount, m_iMonthOfEval;
        private SqlString m_sAwardAndPunish;
        private SqlString m_sEval;
        private SqlString m_sLastAbsent;
        private SqlString m_sPupilID;
        private SqlString m_sTeacherComm;

        #endregion

        #region Class Property Declarations

        public SqlString sPupilID
        {
            get { return m_sPupilID; }
            set
            {
                SqlString sPupilIDTmp = value;
                if (sPupilIDTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sPupilID", "sPupilID can't be NULL");
                }
                m_sPupilID = value;
            }
        }


        public SqlString sAwardAndPunish
        {
            get { return m_sAwardAndPunish; }
            set
            {
                SqlString sAwardAndPunishTmp = value;
                if (sAwardAndPunishTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sAwardAndPunish", "sAwardAndPunish can't be NULL");
                }
                m_sAwardAndPunish = value;
            }
        }


        public SqlInt32 iAbsentCount
        {
            get { return m_iAbsentCount; }
            set
            {
                SqlInt32 iAbsentCountTmp = value;
                if (iAbsentCountTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("iAbsentCount", "iAbsentCount can't be NULL");
                }
                m_iAbsentCount = value;
            }
        }


        public SqlString sLastAbsent
        {
            get { return m_sLastAbsent; }
            set
            {
                SqlString sLastAbsentTmp = value;
                if (sLastAbsentTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sLastAbsent", "sLastAbsent can't be NULL");
                }
                m_sLastAbsent = value;
            }
        }


        public SqlInt32 iMonthOfEval
        {
            get { return m_iMonthOfEval; }
            set
            {
                SqlInt32 iMonthOfEvalTmp = value;
                if (iMonthOfEvalTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("iMonthOfEval", "iMonthOfEval can't be NULL");
                }
                m_iMonthOfEval = value;
            }
        }


        public SqlString sEval
        {
            get { return m_sEval; }
            set
            {
                SqlString sEvalTmp = value;
                if (sEvalTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sEval", "sEval can't be NULL");
                }
                m_sEval = value;
            }
        }


        public SqlString sTeacherComm
        {
            get { return m_sTeacherComm; }
            set
            {
                SqlString sTeacherCommTmp = value;
                if (sTeacherCommTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sTeacherComm", "sTeacherComm can't be NULL");
                }
                m_sTeacherComm = value;
            }
        }

        #endregion
    }
}